<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var date1 = new Date('2017-8-29');
    var t1 = date1.getTime();
    var t2 = Date.parse('2017-8-29 GMT+0800');
    var t3 = Date.UTC(2017,8,29);
    console.log(t1);
    console.log(t2);
    console.log(t3);
</script>
</body>
</html>